package com.hanthink.system.domain.manhour;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;

/**
 * 实际用工数据维护对象 FactWorkerUsed
 * 
 * @author hanthink
 * @date 2022-01-05
 */
public class FactWorkerUsed extends BaseEntity
{

    private static final long serialVersionUID = 1L;

    /** 实体ID */
    @Excel(name = "实体ID")
    private Long id;

    /** 公司代码 */
    @Excel(name = "公司代码")
    private String companyid;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planworkdatetime;

    /** 班次 */
    @Excel(name = "班次")
    private String pshiftid;

    /** 实际用工人数 */
    @Excel(name = "实际用工人数")
    private Integer factworksused;

    /** 实际用工工时 */
    @Excel(name = "实际用工工时")
    private float workhour;

    /** 用工类型 */
    @Excel(name = "用工类型")
    private String workertype;

    /** 创建日期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdatetime;

    /** 创建者 */
    @Excel(name = "创建者")
    private String creator;

    /** $column.columnComment */
    @Excel(name = "创建者")
    private Integer checked;

    /** $column.columnComment */
    @Excel(name = "审核人")
    private String checktor;

    /** $column.columnComment */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkdatetime;

    /** 图片文件资源 */
    @Excel(name = "图片文件资源")
    private String filesource;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCompanyid(String companyid) 
    {
        this.companyid = companyid;
    }

    public String getCompanyid() 
    {
        return companyid;
    }
    public void setPlanworkdatetime(Date planworkdatetime) 
    {
        this.planworkdatetime = planworkdatetime;
    }

    public Date getPlanworkdatetime() 
    {
        return planworkdatetime;
    }
    public void setPshiftid(String pshiftid) 
    {
        this.pshiftid = pshiftid;
    }

    public String getPshiftid() 
    {
        return pshiftid;
    }
    public void setFactworksused(Integer factworksused) 
    {
        this.factworksused = factworksused;
    }

    public Integer getFactworksused() 
    {
        return factworksused;
    }
    public void setWorkertype(String workertype) 
    {
        this.workertype = workertype;
    }

    public float getworkhour()
    {
        return workhour;
    }
    public void setWorkhour(float workhour)
    {
        this.workhour = workhour;
    }

    public String getWorkertype() 
    {
        return workertype;
    }
    public void setCreatedatetime(Date createdatetime) 
    {
        this.createdatetime = createdatetime;
    }

    public Date getCreatedatetime() 
    {
        return createdatetime;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setChecked(Integer checked) 
    {
        this.checked = checked;
    }

    public Integer getChecked() 
    {
        return checked;
    }
    public void setChecktor(String checktor) 
    {
        this.checktor = checktor;
    }

    public String getChecktor() 
    {
        return checktor;
    }
    public void setCheckdatetime(Date checkdatetime) 
    {
        this.checkdatetime = checkdatetime;
    }

    public Date getCheckdatetime() 
    {
        return checkdatetime;
    }
    public void setFilesource(String filesource) 
    {
        this.filesource = filesource;
    }

    public String getFilesource() 
    {
        return filesource;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("companyid", getCompanyid())
            .append("planworkdatetime", getPlanworkdatetime())
            .append("pshiftid", getPshiftid())
            .append("factworksused", getFactworksused())
            .append("workhour", getworkhour())
            .append("workertype", getWorkertype())
            .append("createdatetime", getCreatedatetime())
            .append("creator", getCreator())
            .append("checked", getChecked())
            .append("checktor", getChecktor())
            .append("checkdatetime", getCheckdatetime())
            .append("filesource", getFilesource())
            .toString();
    }
}
